<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>后台管理</title>
	<link rel="stylesheet" type="text/css" href="./res/css/css.css" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
	<div id="body">
		<div class="title">取消订阅</div>
	
		<form name="form1" action="?action=work" method="post" onsubmit="return checkform();" style="margin:0px;">
		<table width="100%" border="1" bordercolor="#cccccc">
		<tr>
			<th width="6%">ID</th>
			<th width="31%">邮件地址</th>
			<th width="9%">取消订阅时间</th>
            <th width="20%">取消订阅IP</th>
			
		<!--	<th width="11%">修改/删除</th>-->
		</tr>

<{foreach from=$list item=l key=key}>
		<tr align="center">
			<td><{$l.id}></td>
			<td align="left">
				<input type="checkbox" name="list<{$key}>" id="list<{$key}>" value="<{$l.id}>" style="border:0px;">
				<span><{$l.email}></span>
			</td>
			<td><{$l.cancel_time}></td>
            <td><{$l.cancel_ip}></td>
		<!--
			<td>
				<a href="index.php?ctl=item&act=edit&id=<{$l.id}>">修改</a>
				<a href="?ctl=item&act=list&id=<{$l.id}>&a=del" ONCLICK="javascript:return confirm('真的要删除吗？删除后将不可恢复！！');">删除</a>
			</td>-->
		</tr>
<{/foreach}>
		<tr>
			<td colspan="9">
				[<a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a>/<a href="javascript:" onClick="CheckAll('no')">不选</a>]
                 <input type="radio" name="work" id="work" value="del" style="border:0px;" />删除
				<input type="checkbox" name="del2" id="del2" value="1" style="border:0px;" />确认删除
				
				<input type="submit" value="执行" />
			</td>
		</tr>
		</table>
		</form>
		<div class="showpage">{$showpage}</div>
	</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckAll(va){
	form=document.form1
	for (var i=0;i<form.elements.length-9;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			if(va=='no'){
				e.checked = false;
			}else{
				e.checked == true ? e.checked = false : e.checked = true;
			}
		}
	}
}
function checkform() {
	form=document.form1
	var checko=false;
	for(var i=0;i<form.elements.length-9;i++){
		var e = form.elements[i];
		if(e.checked == true){
			checko=true;
			break;
		}
	}
	if(checko==false){
		alert( '您没有选择要操作的信息!');
		return false;
	}
	return true;
}
top.document.title=" 后台管理系统 - 网站内容管理";
//-->
</SCRIPT>
</body>
</html>